import json
temper=open("天气预报json.txt","r",encoding="utf-8")
dict=json.load(temper)
# print(dict['result']['city'])
# print(dict['result']['future'][0]['date'])//获取日期
# print(len(dict['result']['future']))//获取未来天气数
for i in range(3):
    print("日期 ： "+dict['result']['future'][i]['date']+" 温度为"+dict["result"]['future'][i]["temperature"]+", 天气为"+dict["result"]['future'][i]["weather"])
